<div class="example-wrapper">
    <kendo-dialog title="请确认" *ngIf="dialogOpened" (close)="close('dialog')" [minWidth]="250">
        <p style="margin: 30px; text-align: center;">{{title}}</p>
        <kendo-dialog-actions>
            <button kendoButton *ngIf="button2!=undefined" (click)="action('no','dialog')">{{button2}}</button>
            <button kendoButton (click)="action('yes','dialog')" primary="true">{{button1}}</button>
        </kendo-dialog-actions>
    </kendo-dialog>
    <kendo-window [minWidth]="300" [minHeight]="125" title="{{title}}" *ngIf="windowOpened" (close)="close('window')">
        <div style="text-align:center" class="container-fluid">
            <form class='k-form'>
                <p *ngIf="description!=undefined" style="text-align: left;"><span class='k-icon my-custom-icon-class'></span>&nbsp;&nbsp;&nbsp;&nbsp;{{description}}</p>
            </form>
        </div>
        <kendo-dialog-actions style="position: relative; bottom:0">
            <button type="button" *ngIf="button2!=undefined" class="k-button" (click)="action('no','window')">{{button2}}</button>
            <button type="button" class="k-button k-primary" (click)="action('yes','window')">{{button1}}</button>
        </kendo-dialog-actions>
    </kendo-window>
</div>